package com.bysc.commonutils.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum FeedBackTypeEnum {


    //功能问题的反馈
    Login(0,"功能问题"),

    //使用建议
    OtherFeedBack(1,"使用建议");


    private final Integer id;

    private final String value;

    public  static String getValueById(int id) {
        for (FeedBackTypeEnum type : values()) {
            if (type.getId() == id) {
                return type.getValue();
            }
        }
        throw new IllegalArgumentException("Invalid FeedBackType id: " + id);
    }


}
